using UnityEngine;

namespace PathFinding
{
    public static class PathMath
    {
        public static float SqrDistance(Vector3 a, Vector3 b)
        {
            return (a - b).sqrMagnitude;
        }
        
        public static float Length(Vector3 a)
        {
            return a.magnitude;
        }
    }
}